//
//  SportNet.h
//  SportSocial
//
//  Created by yull on 14/12/13.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import "BaseNet.h"

@interface SportNet : BaseNet

+ (AFHTTPRequestOperation *)sportListWithSuccessBlock:(httpSuccessBlock)successBlock
                                            failBlock:(httpFailBlock)failBlock;


+ (AFHTTPRequestOperation *)sportListSuccessBlock:(httpSuccessBlock)successBlock
                                        failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)addToHobbyWithSportName:(NSString *)sportName
                                       successBlock:(httpSuccessBlock)successBlock
                                          failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)deleteSportName:(NSString *)sportName
                               successBlock:(httpSuccessBlock)successBlock
                                  failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)paginatePlanWithPageNumber:(NSInteger)pageNumber
                                              pageSize:(NSInteger)pageSize
                                          successBlock:(httpSuccessBlock)successBlock
                                             failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)uploadPlanWithPlanArray:(NSArray *)planArray
                                       successBlock:(httpSuccessBlock)successBlock
                                          failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)deletePlanWithPlanIdArray:(NSArray *)planIdArray
                                         successBlock:(httpSuccessBlock)successBlock
                                            failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)paginateHistoryWithPageNumber:(NSInteger)pageNumber
                                              pageSize:(NSInteger)pageSize
                                          successBlock:(httpSuccessBlock)successBlock
                                             failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)uploadHistoryWithHistoryArray:(NSArray *)historyArray
                                       successBlock:(httpSuccessBlock)successBlock
                                          failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)deleteHistoryWithHistoryIdArray:(NSArray *)historyIdArray
                                         successBlock:(httpSuccessBlock)successBlock
                                            failBlock:(httpFailBlock)failBlock;

//上传运动计划
+ (AFHTTPRequestOperation *)uploadSportPlanWithSportName:(NSString *)sportName
                                                    date:(NSString *)date
                                            successBlock:(httpSuccessBlock)successBlock
                                               failBlock:(httpFailBlock)failBlock;
@end
